package pro.fraud_detect;

import org.apache.flink.api.java.utils.ParameterTool;
import pro.fraud_detect.config.Config;
import pro.fraud_detect.config.Parameters;

/***
 * @author hunter.d
 * @qq 657270652
 * @wx haitao-duan
 * @date 2021/2/22
 **/
public class FraudDetectMain {
    public static void main(String[] args) throws Exception {

        ParameterTool parameterTool = ParameterTool.fromArgs(args);
        Parameters parameters = new Parameters(parameterTool);
        Config config = new Config(parameters, Parameters.STRING_PARAMS, Parameters.BOOL_PARAMS, Parameters.INT_PARAMS);

        RuleEvaluator ruleEvaluator = new RuleEvaluator(config);
        ruleEvaluator.run();

    }
}
